import './assets/main.css'

import { createApp } from 'vue'
// import { ref,  } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import en from 'element-plus/dist/locale/en.mjs'
import 'element-plus/dist/index.css'

// import Pagination from '@/components/Pagination.vue'

import App from './App.vue'
import router from './router'
// import './permission'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import '../src/font/iconfont.css'

// const emit = defineEmits(['customEvent'])



const app = createApp(App)

// app.component('Pagination', Pagination)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(createPinia())
app.use(router)
// app.use(ElementPlus)
app.use(ElementPlus, {
    locale: en,
  })

app.mount('#app')
